package com.remotecontrol.commands;

import com.remotecontrol.receiver.CeilingFan;

public class CeilingFanOffCommand implements Command {
	private CeilingFan ceilingFan;

	public CeilingFanOffCommand(CeilingFan ceilingFan) {
		this.ceilingFan = ceilingFan;
	}

	@Override
	public void execute() {
		ceilingFan.on();
		
	}

	@Override
	public void undo() {
		ceilingFan.off();
	}

}
